package com.ruihu.admin.module.business.tasknode.controller;

import com.ruihu.admin.common.anno.OperateLog;
import com.ruihu.admin.common.controller.BaseController;
import com.ruihu.admin.common.domain.ResponseDTO;
import com.ruihu.admin.module.business.tasknode.domain.dto.SubTaskNodeInstAddDTO;
import com.ruihu.admin.module.business.tasknode.domain.dto.SubTaskNodeInstUpdateDTO;
import com.ruihu.admin.module.business.tasknode.service.SubTaskNodeInstService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * [ 子任务环节实例表 ]
 *
 * @author Tony
 * @version 1.0
 * @company 瑞虎（南京）信息技术有限公司
 * @copyright (c)  瑞虎（南京）信息技术有限公司Inc. All rights reserved.
 * @date 2022-08-30 19:43:58
 * @since JDK1.8
 */
@RestController
@Api(tags = {"子任务环节实例表"})
@OperateLog
public class SubTaskNodeInstController extends BaseController {

    @Autowired
    private SubTaskNodeInstService subTaskNodeInstService;

    @ApiOperation(value="修改子任务环节实例表",notes = "@author Tony")
    @PostMapping("/subTaskNodeInst/update")
    public ResponseDTO<String> update(@RequestBody @Validated SubTaskNodeInstUpdateDTO updateDTO){
        return subTaskNodeInstService.update(updateDTO);
    }
}
